local sk__ruzong = fk.CreateSkill {

  name = "sk__ruzong",

  tags = {  },

}



sk__ruzong:addEffect("viewas", {
  name = "sk__ruzong",
  pattern = "jink,nullification",
  prompt = "#sk__ruzong",
  card_filter = function(self, player, to_select, selected)
    if #selected == 0 then
      local c = Fk:getCardById(to_select)
      local card
      if c.trueName == "nullification" then
        card = Fk:cloneCard("jink")
      elseif c.name == "jink" then
        card = Fk:cloneCard("nullification")
      else
        return false
      end
      return (Fk.currentResponsePattern == nil and player:canUse(card)) or
        (Fk.currentResponsePattern and Exppattern:Parse(Fk.currentResponsePattern):match(card))
    end
  end,
  view_as = function(self, player,cards)
    if #cards ~= 1 then return end
    local c = Fk:getCardById(cards[1])
    local card
    if c.trueName == "nullification" then
      card = Fk:cloneCard("jink")
    elseif c.name == "jink" then
      card = Fk:cloneCard("nullification")
    end
    card.skillName = sk__ruzong.name
    card:addSubcard(cards[1])
    return card
  end,
})

return sk__ruzong